package com.zbcbms.entity.tableData;

import javafx.beans.property.SimpleStringProperty;
import java.util.Date;

/**
 * @author fengq
 */

public class UserTableData {
    private SimpleStringProperty userNumber;
    private SimpleStringProperty userName;
    private SimpleStringProperty joinDate;
    private SimpleStringProperty role;

    public SimpleStringProperty getUserNumber() {
        return userNumber;
    }

    public void setUserNumber(String userNumber) {
        this.userNumber.set(userNumber);
    }

    public SimpleStringProperty getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName.set(userName);
    }

    public SimpleStringProperty getJoinDate() {
        return joinDate;
    }

    public void setJoinDate(Date joinDate) {
        this.joinDate.set(joinDate.toString());
    }

    public SimpleStringProperty getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role.set(role);
    }

    @Override
    public String toString() {
        return "UserTableData{" +
                "userNumber=" + userNumber +
                ", userName=" + userName +
                ", joinDate=" + joinDate +
                ", role=" + role +
                '}';
    }

    public UserTableData() {
    }

    public UserTableData(String userNumber, String userName, Date joinDate,String role) {
        this.userNumber = new SimpleStringProperty(userNumber);
        this.userName = new SimpleStringProperty(userName);
        this.joinDate = new SimpleStringProperty(joinDate.toString());
        this.role=new SimpleStringProperty(role);
    }

}
